﻿using System;

namespace ParserGenerator.ScannerConstruction
{
    [Serializable]
    public sealed class ScannerAutomatonItemSetPack
    {
        public bool Nullable { get; internal set; }
        public ScannerAutomatonItemSet FirstSet { get; }
        public ScannerAutomatonItemSet LastSet { get; }

        internal ScannerAutomatonItemSetPack()
        {
            Nullable = true;
            FirstSet = new ScannerAutomatonItemSet();
            LastSet = new ScannerAutomatonItemSet();
        }

        public sealed override string ToString()
        {
            return string.Format("({0}, {1}, {2})", Nullable, FirstSet, LastSet);
        }
    }
}
